package system

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/system/v1"
)

func (c *ControllerV1) UserUpdate(ctx context.Context, req *v1.UserUpdateReq) (res *v1.UserUpdateRes, err error) {
	res = &v1.UserUpdateRes{}
	err = service.SysUser().Update(ctx, req.Id, &req.UserFormInput)
	return
}
